﻿@using System.Data
@model DataTable
@{
    bool isscraper = ViewBag.isscraper;
}
@if (isscraper)
{
    <div class="row">
        <div class="col-md-2">
            <div class="spinner-border text-success" role="status">
                <span class="sr-only"></span>
            </div>
        </div>
        <div class="col-md-10">
            <span class="text-info">正在采集中，请尝试刷新页面查看新数据</span>
        </div>
    </div>
}
<div class="row">
    <table class="table table-bordered">
        <thead class="thead-dark">
            <tr>
                @for (int i = 0; i < Model.Columns.Count; ++i)
                {
                    <th scope="col">@Model.Columns[i]</th>
                }
            </tr>
        </thead>
        <tbody>
            @foreach (DataRow row in Model.Rows)
            {
                <tr>
                    @foreach (DataColumn column in Model.Columns)
                    {
                        <td>@row[column]</td>
                    }
                </tr>
            }
        </tbody>
    </table>
</div>
